package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 远程调用优惠劵Coupon服务里的接口
 */
@FeignClient("gulimall-coupon")// 要远程调用的服务名
public interface CouponFeign {

    // 声明需要远程调用的接口
    @RequestMapping("/coupon/coupon/list")
    public R list(@RequestParam Map<String, Object> params);
}
